package com.fay.designPattern.principles.solid;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/3/2 22:27
 * @Version 1.0
 */
public class Notification2 {
    private MessageSender messageSender;

    public Notification2(MessageSender messageSender) {
        this.messageSender = messageSender;
    }

    public void sendMessage(String cellphone, String message) {
        this.messageSender.send(cellphone, message);
    }

}
